package com.franklin.ideaplugin.api.utils;

/**
 * @author Ye Junhui
 * @since 2023/5/27 17:14
 */
public class MyPathUtil {

    /**
     * 去除路径不允许的字符
     * @param path
     * @return
     */
    public static String deleteErrorChars(String path){
        return path
                .replace('.','_')
                .replace('<','(')
                .replace('>',')')
                .replace(":","")
                .replace('\\','/');
    }

}
